import request from '@/utils/request'

export function getOfficerByPage(query) {
  return request({
    url: '/web-api/api/enforcementOfficer/gpsRange',
    method: 'get',
    params: query
  })
}

export function getVehicleByPage(query) {
  return request({
    url: '/web-api/api/enforcementVehicle/gpsRange',
    method: 'get',
    params: query
  })
}

export function getVideoByPage(query) {
  return request({
    url: '/web-api/api/video/gpsRange',
    method: 'get',
    params: query
  })
}
//案件详情
export function getCaseDetails(caseCode) {
  return request({
    url: '/web-api/api/acceptCases/findByCode',
    method: 'get',
    params: { caseCode: caseCode }
  })
}

// 指派


export function saveAcceptAndAssign(data) {
  return request({
    url: '/web-api/api/assignTask/saveAcceptAndAssign',
    method: 'post',
    data
  })
}